import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class inoutput {
    public static void main(String[] args) throws IOException {
        FileInputStream in = new FileInputStream("D:\\a\\a.txt");
        FileOutputStream out = new FileOutputStream("D:\\a\\b.txt");
        int i;
        while ((i=in.read())!=-1){
            out.write(i);
        }
        in.close();
        out.close();
    }
}
